// pages/authorize/authorize.js
import config from "../../utils/config";
import {request} from "../../utils/request";

Page({

    /**
     * 页面的初始数据
     */
    data: {
        picUrl: config.picUrl,
        custom: wx.getMenuButtonBoundingClientRect(),
        sole_id:'',
        sole:null
    },
    onLoad(options) {
        this.setData({sole_id:options.scene})
        this.getDatail()
    },
    getDatail(){
        request({url:"/miniprogram/order/checkPoster",data:{id:this.data.sole_id}}).then(res=>{
            if(res.code != 200){
                config.toast(res.msg,res.code,()=>{})
            }else{
                this.setData({sole:res.data})
            }
        })
    }
})